package com.community.sqlapp.mapper;

import com.community.sqlapp.entity.TencentCosFile;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface TencentCosFileMapper {
    @Insert("INSERT INTO tencent_cos_file (file_name, file_url) VALUES (#{fileName}, #{fileUrl})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insert(TencentCosFile file);
} 